<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>系统登录</title>
  <link rel="stylesheet" href="css/login.css">
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <script src="./lib/layui/layui.js" charset="utf-8"></script>
</head>
<body class="login-bg">

    <div class="login" style="margin: 50px auto 0 auto">
        <div class="message">系统登录</div>
        <div id="darkbannerwrap"></div>   
        <form method="post" class="" action="LoginController">
            <input name="username" placeholder="用户名"  type="text" lay-verify="required" class="layui-input" >
            <hr class="hr15">
            <input name="password" lay-verify="required" placeholder="密码"  type="password" class="layui-input">
            <hr class="hr15">
            <input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit" onclick="changemethod(1)" >
            <hr class="hr20" >
            <input value="注册" lay-submit lay-filter="login" style="width:100%;" type="submit" onclick="changemethod(2)">
            <hr class="hr20" >
            <input type="hidden" id="methodvalue" name="method" value="" />
        </form>
    </div>

    <script src="./js/x-layui.js" charset="utf-8">
    </script>
    <script>
        function changemethod(data) {
            if(data == 2){
                document.getElementById("methodvalue").value = "register";
            }else{
                document.getElementById("methodvalue").value = "login";
            }
        }
        </script>

    
    <!-- 底部结束 -->
    
</body>
</html>